import os

#ranges = [ "150","250","300","350","400"] 
ranges = [ "250"]
for rng in ranges:
    os.system("~/ns-allinone-2.33/ns-2.33/ns ./1.tcl "+rng)
    os.system("python ./ns.py >"+rng)
    print  "done"